import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import 'normalize.css'
import '@/assets/css/base.css'

import api from '../src/api/index' //引入进来
Vue.prototype.$api = api //好像是互相对应接口 
//导入语言
// import './lang/index'
import i18n from './lang/index'
//echarts *命名 
import *as echarts from 'echarts'
console.log('--------echarts', echarts);
Vue.prototype.$echarts = echarts//所有的实例豆可以访问$echarts

import './router/permission'//引入路由拦截
import './utils/localStoreage'//引入登录持久化
//面包屑
import ElementUIBreadcrumb from "@/components/ElementUIBreadcrumb.vue"
//全局引入
Vue.component("ElementUIBreadcrumb",ElementUIBreadcrumb,)
import Mock from './mockjs/index'
Vue.config.productionTip = false

new Vue({
  router,
  store,
  i18n,
  Mock,
  
  render: h => h(App),
}).$mount('#app')
